
package com.yjh.admin.server.sys.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.yjh.admin.config.data.DataSource;
import com.yjh.admin.entity.user.SysDept;
import com.yjh.admin.mapper.user.SysDeptMapper;
import com.yjh.admin.server.sys.SysDeptService;
import org.springframework.stereotype.Service;

/**
 * 部门
 *
 * @author smithGuo
 * @date 2020-06-28 17:47:03
 */
@Service
public class SysDeptServiceImpl extends ServiceImpl<SysDeptMapper, SysDept> implements SysDeptService {


    @Override
    @DataSource("sys_db")
    public SysDept getDeptById(Integer deptId) {
        SysDept sysDept = baseMapper.selectById(deptId);
        return sysDept;
    }


}
